package com.qianyu.project.core.scan;

import com.qianyu.project.core.context.handler.FlowHandlerFactory;
import lombok.Data;

/**
 * @author gs
 * @date create in 2021/1/22 7:50
 */
@Data
public class FlowHandlerScanRegister {

    private FlowHandlerFactory flowHandlerFactory;
    private PackageScan packageScan;
    private String packages;

    public FlowHandlerScanRegister(FlowHandlerFactory flowHandlerFactory, String packages) {
        this.flowHandlerFactory = flowHandlerFactory;
        this.packages = packages;

        if (this.packages != null && !"".equals(this.packages)){
            this.packageScan = new PackageScan(flowHandlerFactory, packages);
        }
    }
}
